package demo02.setName;

public class Demo01SetThreadName {
    public static void main(String[] args) {
        MyThread myThread=new MyThread();
        myThread.setName("法外狂徒张三_线程名");
        myThread.start();
        new MyThread("李四").start();
        System.out.println(Thread.currentThread().getName());

    }
}
